<?php /* Smarty version 3.1.27, created on 2017-06-07 13:20:20
         compiled from "D:\wamp\www\zhangzhengyu\views\User\index.html" */ ?>
<?php
/*%%SmartyHeaderCode:6965937fd94778ae0_59803209%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'bb12b2600d5cda9ea5dcd29a6161b1c9e87999f2' => 
    array (
      0 => 'D:\\wamp\\www\\zhangzhengyu\\views\\User\\index.html',
      1 => 1496841369,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6965937fd94778ae0_59803209',
  'variables' => 
  array (
    'list' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.27',
  'unifunc' => 'content_5937fd9487a825_77451757',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_5937fd9487a825_77451757')) {
function content_5937fd9487a825_77451757 ($_smarty_tpl) {

$_smarty_tpl->properties['nocache_hash'] = '6965937fd94778ae0_59803209';
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>

	<link rel="stylesheet" href="./public/css/bootstrap.min.css">
    <link rel="stylesheet" href="./public/my.css">

</head>
<body>
   <h1>用户列表</h1>
    <div class="container">
    <div class="center-block mt20">
            <a href="./index.php?c=User&a=index" class="btn btn-info">首页</a>
            <a href="./index.php?c=User&a=add" class="btn btn-success">添加</a>
     </div>
 
	<table class="table table-hover mt20">
		<tr>
			<td>ID</td>
			<td>tel</td>
			<td>nickname</td>
			<td>pwd</td>
			<td>sex</td>
		</tr>
		<?php
$_from = $_smarty_tpl->tpl_vars['list']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$_smarty_tpl->tpl_vars['v'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['v']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
$foreach_v_Sav = $_smarty_tpl->tpl_vars['v'];
?>
			<tr>
				<td><?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['v']->value['tel'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['v']->value['nickname'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['v']->value['pwd'];?>
</td>
				<td>
				<?php if ($_smarty_tpl->tpl_vars['v']->value['sex'] == 0) {?>女
				<?php } elseif ($_smarty_tpl->tpl_vars['v']->value['sex'] == 1) {?>男
				<?php } else { ?>保密
				<?php }?>
				</td>
				<td class="col-md-2">
					<a href="./index.php?c=user&a=edit&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" class="btn btn-sm btn-primary">编辑</a>
					<a href="./index.php?c=user&a=del&id=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
" class="btn btn-sm btn-danger">删除</a>
				</td>
			</tr>
		<?php
$_smarty_tpl->tpl_vars['v'] = $foreach_v_Sav;
}
?>
	</table>
        

</div><!--END container-->

	<?php echo '<script'; ?>
 src="./public/js/jquery.min.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="./public/js/bootstrap.min.js"><?php echo '</script'; ?>
>
</body>
</html><?php }
}
?>